import Main from '@/components/main';
// 基础设置
export const base = [
  {
    path: '/base',
    component: Main,
    name: 'Base',
    meta: {
      title: '基础数据',
      icon: 'icon iconfont iconzujian'
    },
    children: [
       {
        path: '/base/taskNode',
        name: 'TaskNodeManage',
        meta: {
          title: '任务节点维护',
          privilege: [
            {
              title: '查询',
              name: 'search-taskNode'
            },
            {
              title: '新增节点',
              name: 'add-taskNode'
            },
            {
              title: '编辑节点',
              name: 'update-taskNode'
            },
            {
              title: '删除节点',
              name: 'delete-taskNode'
            }
          ]
        },
        component: () =>
          import('@/views/system/base/task-node/task-node.vue')
      },
      {
        path: '/base/defectType',
        name: 'TaskDefectTypeManage',
        meta: {
          title: '缺陷类型维护',
          privilege: [
            {
              title: '查询',
              name: 'search-defectType'
            },
            {
              title: '添加',
              name: 'add-defectType'
            },
            {
              title: '修改',
              name: 'update-defectType'
            },
            {
              title: '删除',
              name: 'delete-defectType'
            }
          ]
        },
        component: () => import('@/views/system/base/task-defect-type/task-defect-type.vue')
      },
      {
        path: '/base/taskNodeConfig',
        name: 'TaskNodeConfigManage',
        meta: {
          title: '自定义节点元素',
          privilege: [
            {
              title: '查询节点元素',
              name: 'search-nodeConfig'
            },
            {
              title: '添加节点元素',
              name: 'add-nodeConfig'
            },
            {
              title: '修改节点元素',
              name: 'update-nodeConfig'
            },
            {
              title: '删除节点元素',
              name: 'delete-nodeConfig'
            }
          ]
        },
        component: () => import('@/views/system/base/task-node-config/task-node-config.vue')
      },{
        path: '/base/electricTypeConfig',
        name: 'ElectricTypeConfigManage',
        meta: {
          title: '电芯型号配置',
          privilege: [
            {
              title: '查询电芯型号',
              name: 'search-electricType'
            },
            {
              title: '添加电芯型号',
              name: 'add-electricType'
            },
            {
              title: '修改电芯型号',
              name: 'update-electricType'
            },
            {
              title: '删除电芯型号',
              name: 'delete-electricType'
            }
          ]
        },
        component: () => import('@/views/system/base/electric-type-config/electric-type-config.vue')
      },{
        path: '/base/electricFactoryConfig',
        name: 'ElectricFactoryConfigManage',
        meta: {
          title: '生产工厂配置',
          privilege: [
            {
              title: '查询生产工厂配置',
              name: 'search-electricFactory'
            },
            {
              title: '添加生产工厂配置',
              name: 'add-electricFactory'
            },
            {
              title: '修改生产工厂配置',
              name: 'update-electricFactory'
            },
            {
              title: '删除生产工厂配置',
              name: 'delete-electricFactory'
            }
          ]
        },
        component: () => import('@/views/system/base/electric-factory-config/electric-factory-config.vue')
      },{
        path: '/base/cellTypeConfig',
        name: 'CellTypeConfigManage',
        meta: {
          title: '电芯类型配置',
          privilege: [
            {
              title: '查询电芯类型配置',
              name: 'search-cellType'
            },
            {
              title: '添加电芯类型配置',
              name: 'add-cellType'
            },
            {
              title: '修改电芯类型配置',
              name: 'update-cellType'
            },
            {
              title: '删除电芯类型配置',
              name: 'delete-cellType'
            }
          ]
        },
        component: () => import('@/views/system/base/cell-type-config/cell-type-config.vue')
      }
    ]
  }
];
